home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.5 Complementary Applications 2004 February / SGI IRIX 6.5 Complementary Applications 2004 February.iso / dist / cde.idb / usr / dt / app-defaults / C / UNIXbindings.z / UNIXbindings
Encoding:
Text File  |  2003-11-18  |  6.6 KB  |  164 lines

  1. !#
  2. !# UNIXbindings
  3. !#
  4. !# Copyright 2000, Silicon Graphics, Inc.
  5. !# ALL RIGHTS RESERVED
  6. !# 
  7. !# UNPUBLISHED -- Rights reserved under the copyright laws of the United
  8. !# States.   Use of a copyright notice is precautionary only and does not
  9. !# imply publication or disclosure.
  10. !#
  11. !# U.S. GOVERNMENT RESTRICTED RIGHTS LEGEND:
  12. !# Use, duplication or disclosure by the Government is subject to restrictions
  13. !# as set forth in FAR 52.227.19(c)(2) or subparagraph (c)(1)(ii) of the Rights
  14. !# in Technical Data and Computer Software clause at DFARS 252.227-7013 and/or
  15. !# in similar or successor clauses in the FAR, or the DOD or NASA FAR
  16. !# Supplement.  Contractor/manufacturer is Silicon Graphics, Inc.,
  17. !# 2011 N. Shoreline Blvd. Mountain View, CA 94039-7311.
  18. !#
  19. !# THE CONTENT OF THIS WORK CONTAINS CONFIDENTIAL AND PROPRIETARY
  20. !# INFORMATION OF SILICON GRAPHICS, INC. ANY DUPLICATION, MODIFICATION,
  21. !# DISTRIBUTION, OR DISCLOSURE IN ANY FORM, IN WHOLE, OR IN PART, IS STRICTLY
  22. !# PROHIBITED WITHOUT THE PRIOR EXPRESS WRITTEN PERMISSION OF SILICON
  23. !# GRAPHICS, INC.
  24. !#
  25. !######################################################################
  26. !#
  27. !#  UNIXbindings
  28. !#
  29. !#     SGI Common Desktop Environment (CDE)
  30. !#
  31. !#     (c) Copyright 1994, 1995 TriTeal Corporation
  32. !#     (c) Copyright 1993, 1994 Hewlett-Packard Company
  33. !#     (c) Copyright 1993, 1994 International Business Machines Corp.
  34. !#     (c) Copyright 1993, 1994 Sun Microsystems, Inc.
  35. !#     (c) Copyright 1993, 1994 Unix System Labs, Inc., a subsidiary 
  36. !#         of Novell, Inc.
  37. !#
  38. !#  Provides EMACS style translations for DtEditor widget applications
  39. !#  such as Dtpad and Dtmail.  Also provides alternates for DtEditor
  40. !#  widget application menu accelerators which confict with these
  41. !#  translations.
  42. !#
  43. !#  By default this file is not used by DtEditor widget applications.
  44. !#  To enable these bindings, include this file in your home directory
  45. !#  .Xdefaults file and then restart your session.  Initially, you can
  46. !#  include this file simply by inserting a #include directive in your
  47. !#  .Xdefaults file:
  48. !#
  49. !#    #include "/usr/dt/app-defaults/LANG/UNIXbindings"
  50. !#
  51. !#  where LANG is the value of your $LANG environment variable
  52. !#  (normally "C").
  53. !#
  54. !#  To modifiy these bindings, insert the contents of this file directly
  55. !#  in your .Xdefaults file instead of the above include directive.
  56. !#  Then edit the bindings in your .Xdefaults file (and restart your
  57. !#  session when done).
  58. !#
  59. !#
  60. !######################################################################
  61.  
  62.  
  63. !######################################################################
  64. !# Dtpad overrides for menu accelerators and accelerator text which
  65. !# confict with the UNIX bindings.
  66. !######################################################################
  67. Dtpad*fileMenu.print.acceleratorText:        
  68. Dtpad*fileMenu.print.accelerator:        
  69. Dtpad*editMenu.undo.acceleratorText:        Ctrl+_
  70. Dtpad*editMenu.undo.accelerator:        Ctrl<Key>_
  71. Dtpad*editMenu.paste.acceleratorText:        Shift+Insert
  72. Dtpad*editMenu.paste.accelerator:        Shift<Key>osfInsert
  73. Dtpad*editMenu.findChange.acceleratorText:    Ctrl+S
  74. Dtpad*editMenu.findChange.accelerator:        Ctrl<Key>s
  75.  
  76.  
  77. !######################################################################
  78. !# Dtmail compose dialog overrides for menu accelerators and accelerator
  79. !# text which confict with the UNIX bindings.
  80. !######################################################################
  81. Dtmail*ComposeDialog*menubar*Edit.Undo.acceleratorText:        Ctrl+_
  82. Dtmail*ComposeDialog*menubar*Edit.Undo.accelerator:         Ctrl<Key>_
  83. Dtmail*ComposeDialog*menubar*Edit.Paste.acceleratorText:     Shift+Insert
  84. Dtmail*ComposeDialog*menubar*Edit.Paste.accelerator:         Shift<Key>osfInsert
  85. Dtmail*ComposeDialog*menubar*Edit.Find/Change.acceleratorText:     Ctrl+S
  86. Dtmail*ComposeDialog*menubar*Edit.Find/Change.accelerator:     Ctrl<Key>s
  87.  
  88.  
  89. !######################################################################
  90. !# UNIX Bindings.
  91. !#
  92. !# The following translations provide (GNU style) EMACS control and
  93. !# meta key bindings plus some additional bindings.  When appropriate,
  94. !# they also allow the Shift key to be used in combination with the
  95. !# normal binding to reverse the direction of the operation.  For
  96. !# example, Ctrl-Shift-F will move the cursor backward a character
  97. !# since Ctrl-F normally moves it forward a character.
  98. !#
  99. !# The additional bindings are:
  100. !#
  101. !#    Ctrl-comma:  backward-word       Ctrl-Shift-comma:  forward-word
  102. !#    Ctrl-period: forward-word        Ctrl-Shift-period: backward-word
  103. !#    Ctrl-Return: end-of-file         Ctrl-Shift-Return: beginning-of-file
  104. !#
  105. !# NOTES:
  106. !#
  107. !#  o GNU EMACS binds delete-previous-character() rather than
  108. !#    delete-next-character() to the Delete key.
  109. !#  o Meta-F is normally the mnemonic for the File menu so the binding
  110. !#    to forward-word() will be ignored.
  111. !#
  112. !######################################################################
  113. *DtEditor.textTranslations: \
  114. c ~s        <Key>a:            beginning-of-line()\n\
  115. c s        <Key>a:            end-of-line()\n\
  116. c ~s        <Key>b:            backward-character()\n\
  117. c s        <Key>b:            forward-character()\n\
  118. c ~s        <Key>b:            backward-character()\n\
  119. c s        <Key>b:            backward-word()\n\
  120. m ~s        <Key>b:            backward-word()\n\
  121. m s        <Key>b:            forward-word()\n\
  122. c ~s        <Key>d:            delete-next-character()\n\
  123. c s        <Key>d:            delete-previous-character()\n\
  124. m ~s        <Key>d:            kill-next-word()\n\
  125. m s        <Key>d:            kill-previous-word()\n\
  126. c ~s        <Key>e:            end-of-line()\n\
  127. c s        <Key>e:            beginning-of-line()\n\
  128. c ~s        <Key>f:            forward-character()\n\
  129. c s        <Key>f:            backward-character()\n\
  130. m ~s        <Key>f:            forward-word()\n\
  131. m s        <Key>f:            backward-word()\n\
  132. c        <Key>j:            newline-and-indent()\n\
  133. c ~s        <Key>k:            kill-to-end-of-line()\n\
  134. c s        <Key>k:            kill-to-start-of-line()\n\
  135. c        <Key>l:            redraw-display()\n\
  136. c        <Key>m:            newline()\n\
  137. c ~s        <Key>n:            process-down()\n\
  138. c s        <Key>n:            process-up()\n\
  139. c        <Key>o:            newline-and-backup()\n\
  140. c ~s        <Key>p:            process-up()\n\
  141. c s        <Key>p:            process-down()\n\
  142. c ~s        <Key>u:            kill-to-start-of-line()\n\
  143. c s        <Key>u:            kill-to-end-of-line()\n\
  144. c ~s        <Key>v:            next-page()\n\
  145. c s        <Key>v:            previous-page()\n\
  146. m ~s        <Key>v:            previous-page()\n\
  147. m s        <Key>v:            next-page()\n\
  148. c        <Key>w:            kill-selection()\n\
  149. c ~s        <Key>y:            unkill()\n\
  150. m        <Key>]:            forward-paragraph()\n\
  151. m        <Key>[:            backward-paragraph()\n\
  152. c ~s        <Key>comma:        backward-word()\n\
  153. c s        <Key>comma:        forward-word()\n\
  154. m        <Key>\\<:        beginning-of-file()\n\
  155. c ~s        <Key>period:        forward-word()\n\
  156. c s        <Key>period:        backward-word()\n\
  157. m        <Key>\\>:        end-of-file()\n\
  158. c ~s        <Key>Return:        end-of-file()\n\
  159. c s        <Key>Return:        beginning-of-file()\n\
  160. ~c ~s ~m ~a    <Key>osfDelete:        delete-previous-character()\n\
  161. ~c s ~m ~a    <Key>osfDelete:        delete-next-character()
  162.  
  163. !###########################   eof   ###########################
  164.